﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WLYT.Domain.ApiModel
{
    public class OrderModel
    {
        /// <summary>
        /// 入库单号
        /// </summary>
        public string doc_num { get; set; }

        /// <summary>
        /// 单据类型
        /// </summary>
        public string doc_type { get; set; }

        /// <summary>
        /// 仓库编码
        /// </summary>
        public string ware_code { get; set; }

        /// <summary>
        /// 工单单号
        /// </summary>
        public string project_id { get; set; }

        /// <summary>
        /// 同步类型
        /// </summary>
        public int upd_flag { get; set; }

        /// <summary>
        /// 是否七寸盘（1:7寸，0：非7寸）
        /// </summary>
        public int is_seven_inch { get; set; }

        /// <summary>
        /// 供应商编码
        /// </summary>
        public string supplier_code { get; set; }

        /// <summary>
        /// 入库明细
        /// </summary>
        public List<OrderDetail> body { get; set; }
    }

    public class OrderDetail
    {
        /// <summary>
        /// in 项目行id
        /// </summary>
        public string inBoundMaterialId { get; set; }

        /// <summary>
        /// out 项目行id
        /// </summary>
        public string outBoundMaterialId { get; set; }

        /// <summary>
        /// 仓库编码
        /// </summary>
        public string ware_code { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string item_code { get; set; }

        /// <summary>
        /// 制造商编码
        /// </summary>
        public string mader_code { get; set; }

        /// <summary>
        /// 制造商名称
        /// </summary>
        public string mader_name { get; set; }

        /// <summary>
        /// 物料描述
        /// </summary>
        public string item_desc { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string unit_code { get; set; }

        /// <summary>
        /// 退料数量
        /// </summary>
        public int return_qty { get; set; }

        /// <summary>
        /// 入库数量
        /// </summary>
        public int recv_qty { get; set; }

        /// <summary>
        /// 出库数量
        /// </summary>
        public int out_qty { get; set; }

        /// <summary>
        /// 原厂编码
        /// </summary>
        public string original_code { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string lot { get; set; }
        /// <summary>
        /// 出库批次
        /// </summary>
        public List<LableModel> labelList { get; set; }
    }

    public class LableModel
    {
        public string labelId { get; set; }
    }
}